from effect.util.console.SuperConsole import cls


class Windows:
    def __init__(self,lastWindows = None, *args, **kwargs):
        self.LastWindows:Windows = lastWindows

    def UiShow(self):
        cls()

    def Logic(self):
        ...

    def returnPages(self):
        if self.LastWindows is None:
            raise TabError("你没有设置上一层页面")
        else:
            cls()
            self.LastWindows.UiShow()
